package com.xuerhua.yxt.common.enums;

public enum StudentSignupStaus {

	NEW_STUDENT("001", "待处理"),
	MIDDLE_STUDENT("000", "录取"),
	INTERNAT_STUDENT("002", "未录取");

	private final String code;
	
	private final String desc;
	
	private StudentSignupStaus(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	public static String getDesc(String code) {
		for(StudentSignupStaus status : StudentSignupStaus.values()) {
			if(status.getCode().equals(code)) {
				return status.getDesc();
			}
		}
		return "";
	}
	
	public static String getCode(String desc) {
		for(StudentSignupStaus status : StudentSignupStaus.values()) {
			if(status.getDesc().equals(desc)) {
				return status.getCode();
			}
		}
		return "";
	}

	public String getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
	
}
